
<div class="indexWidth">
    <button type="button" class="btn btn-info mainButtonRight"><a
            href="javascript:takeout.openMenu('${ctxPath!}/question/list?type=${type!}&isbanner=${isbanner!}', null)" class="mianAcolor">返回</a></button>

    <div class="sectionTitle">
        测试题管理
        <hr>
    </div>
<form id="questionForm" action="${ctxPath!}/question/save?type=${type!}" method="POST" class="form-horizontal" enctype="multipart/form-data">
    <input type="hidden" name="question.id" value="${question.id!}" />

    <div id="tab" class="btn-group" data-toggle="buttons-radio" style="margin-left: 100px">
        <a href="#htmlimage" class="btn btn-large btn-info  active" data-toggle="tab">填写网址</a>
        <a href="#fileimage" class="btn btn-large btn-info" data-toggle="tab">选择文件</a>

    </div>
    <div class="tab-content" style="margin-top: 10px">

        <div class="tab-pane active" id="htmlimage">
            <div class="articleFormLabel"  style="display: flex;align-items:center;" >
                <label class="mainSetConsistentWidth">头像：</label>
                <input type="text" name="question.img" target="_blank"  style="margin-top: 4px" class="mainSetWidth" value="${question.img!}" placeholder="" />
            </div>
        </div>
        <div class="tab-pane " id="fileimage">
            <div class="articleFormLabel"   style="display: flex;align-items:center;">
                <label class="mainSetConsistentWidth">头像：</label>
                <input type="file" id="grouping" name="img" class="mainSetWidth" >
                <a href="${question.img!}" target="_blank" style="margin-left: 10px;">查看图片(图片大小无限制)</a>
            </div>
        </div>
    </div>

    <div id="tab1" class="btn-group" data-toggle="buttons-radio" style="margin-left: 100px">
        <a href="#htmlimage1" class="btn btn-large btn-info  active" data-toggle="tab">填写网址</a>
        <a href="#fileimage1" class="btn btn-large btn-info" data-toggle="tab">选择文件</a>

    </div>
    <div class="tab-content" style="margin-top: 10px">

        <div class="tab-pane active" id="htmlimage1">
            <div class="articleFormLabel"  style="display: flex;align-items:center;" >
                <label class="mainSetConsistentWidth">广告：</label>
                <input type="text" name="question.banner" target="_blank"   style="margin-top: 4px" class="mainSetWidth" value="${question.banner!}" placeholder="" />
            </div>
        </div>
        <div class="tab-pane " id="fileimage1">
            <div class="articleFormLabel"   style="display: flex;align-items:center;">
                <label class="mainSetConsistentWidth">广告：</label>
                <input type="file" id="grouping1" name="img" class="mainSetWidth" >
                <a href="${question.banner!}" target="_blank" style="margin-left: 10px;">查看图片(图片大小无限制)</a>
            </div>
        </div>
    </div>

    <div class="articleFormLabel">
        <label class="mainSetConsistentWidth">类别：</label>
        <#oneToManyTag val="${question.type!}" type="select" table="category" columnName="name" class="mainSetWidth"
                pname="question.type" defaultNumber="1" whereSel="parentid" whereArgs="4"></#oneToManyTag>
    </div>

    <div class="articleFormLabel">
        <label class="mainSetConsistentWidth">是否推荐：</label>
        <#dictTag val="${question.isbanner!}" type="select" group="yes_no"  pname="question.isbanner" defaultNumber="2"></#dictTag>
    </div>

    <div class="articleFormLabel">
        <label class="mainSetConsistentWidth">标题：</label>
        <input type="text" name="question.title" class="mainSetWidth" value="${question.title!}" placeholder="" />
    </div>

    <div class="articleFormLabel">
        <label class="mainSetConsistentWidth">星星：</label>
        <input type="text" name="question.star" class="mainSetWidth" value="${question.star!}" placeholder="" />
    </div>

    <div class="articleFormLabel">
        <label class="mainSetConsistentWidth">测试人数：</label>
        <input type="text" name="question.testing" class="mainSetWidth" value="${question.testing!}" placeholder="" />
    </div>
    <div class="articleFormLabel">
        <label class="mainSetConsistentWidth">APPID：</label>
        <input type="text" name="question.wxappid" class="mainSetWidth" value="${question.wxappid!}" placeholder="" />
    </div>
    <div class="articleFormLabel">
        <label class="mainSetConsistentWidth">APPURL：</label>
        <input type="text" name="question.wxppurl" class="mainSetWidth" value="${question.wxppurl!}" placeholder="" />
    <div class="articleFormLabel" style="display: flex;align-items:center;">
        <label class="mainSetConsistentWidth">测试介绍：</label>
        <textarea rows="6" name="question.remark" class="mainSetWidth">${question.remark!}</textarea>
    </div>


    <div class="form-group">
        <button style="margin-left: 100px;width:95px;" class="btn btn-info articleFormButton" type="button"
                onclick="takeout.ajaxFormMainPanel('questionForm')" >保存</button>
    </div>

</form>